import request from '@/utils/request'

export default {
  // 5.根据视频id删除阿里云中的视频
  deleteAlyVod(id) {
    return request({
      url: `/educed/video/removeAlyVideo/${id}`,
      method: 'delete'
    })
  },
  // 1.添加小节
  addVideo(video) {
    return request({
      url: `/serviceEdu/video/addVideo`,
      method: 'post',
      data: video
    })
  },
  // 2.删除小节
  deleteVideo(id) {
    return request({
      url: `/serviceEdu/video/${id}`,
      method: 'delete'
    })
  },
  // 3.根据小节id查询小节
  getVideo(videoId) {
    return request({
      url: `/serviceEdu/video/getVideoInfo/${videoId}`,
      method: 'get'
    })
  },
  // 4.修改小节
  updateVideo(video) {
    return request({
      url: `/serviceEdu/video/updateVideo`,
      method: 'post',
      data: video
    })
  }
}
